/** 提现方式 */
export const TIXIAN_TYPE = {
	CARD: "bank", // 银行卡
	WEIXIN: 'wx',
	ALI: "alipay",
}

/** 提现审核状态 */
export const TIXIAN_APPLY_STATUS = {};
TIXIAN_APPLY_STATUS[TIXIAN_APPLY_STATUS['LOADING'] = 1] = '审核中';
TIXIAN_APPLY_STATUS[TIXIAN_APPLY_STATUS['AUDITED'] = 2] = '待打款';
TIXIAN_APPLY_STATUS[TIXIAN_APPLY_STATUS['AUDITED_REJECT'] = 3] = '已驳回';
TIXIAN_APPLY_STATUS[TIXIAN_APPLY_STATUS['PAY_COMPLETE'] = 4] = '打款完成';
TIXIAN_APPLY_STATUS[TIXIAN_APPLY_STATUS['PAY_FAIL'] = 5] = '打款失败';

/** 支付方式类型 */
export const PAY_TYPE = {
	WEIXIN: '_WEIXIN',
	ALI: '_ALI',
	YUE: '_YUE',
};

/** 密码正则(需要包含字母和数字的12位密码) */
export const pwdReg = /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,12}$/;
/** 手机号正则 */
export const phoneReg = /^1[3-9]\d{9}$/;
/** 身份证号正则 */
export const idCardReg = /^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
/** 有效输入过滤【只保留字母加数字】 */
export const validStrReg = /[^A-Za-z0-9]/g;
/** 银行卡号正则 */
export const bankRegFn = (num = '') => /^(62|88|56)\d{14}$/.test(num) || /^(62|88|56)\d{17}$/.test(num);
/** 姓名正则 */
export const realNameReg = /^[\u4e00-\u9fa5]{2,4}$/;
/** 银行卡隐藏显示 */
export const bankNumSafeView = (num = '') => {
	if (num.length == 16) return `**** **** **** ${num.slice(-4)}`;
	else if (num.length == 19) return `**** **** **** **** ${num.slice(-3)}`;
	return num;
}

/** 首页模块类型 */
export const HOME_MODULE_TYPE = {
	GPT3: '1',
	GPT4: '2',
	POSTER: '3',
}

/** GPT角色 */
export const GPT_PERSON_TYPE = {
	USER: 1, // 用户（真人）
	JIQIREN: 2, // 机器人
}

/** gpt版本 */
export const GPT_VERSION = {};
GPT_VERSION[GPT_VERSION['THREE'] = 1] = '3.5';
GPT_VERSION[GPT_VERSION['FOUR'] = 2] = '4.0';

/** 充值方式 */
export const CHONGZHI_TYPE = {};
CHONGZHI_TYPE[CHONGZHI_TYPE['WEIXIN'] = 'AppPay'] = '微信';
CHONGZHI_TYPE[CHONGZHI_TYPE['ALI'] = 'ALI'] = '支付宝';
CHONGZHI_TYPE[CHONGZHI_TYPE['XCX'] = 'MiniPay'] = '微信小程序';

/** GPT3会员类型 */
export const GPT3_VIP_TYPE = {};
GPT3_VIP_TYPE[GPT3_VIP_TYPE['NOT'] = '0'] = '普通用户';
GPT3_VIP_TYPE[GPT3_VIP_TYPE['WEEK'] = '1'] = '周卡';
GPT3_VIP_TYPE[GPT3_VIP_TYPE['MONTH'] = '2'] = '月卡';
GPT3_VIP_TYPE[GPT3_VIP_TYPE['JI'] = '3'] = '季卡';
GPT3_VIP_TYPE[GPT3_VIP_TYPE['YEAR'] = '4'] = '年卡';
GPT3_VIP_TYPE[GPT3_VIP_TYPE['YONGJIU'] = '5'] = '永久会员';

/** GPT4会员类型 */
export const GPT4_VIP_TYPE = {};
GPT4_VIP_TYPE[GPT4_VIP_TYPE['NOT'] = '0'] = '普通用户';
GPT4_VIP_TYPE[GPT4_VIP_TYPE['TONG'] = '1'] = '铜卡';
GPT4_VIP_TYPE[GPT4_VIP_TYPE['JIN'] = '2'] = '金卡';
GPT4_VIP_TYPE[GPT4_VIP_TYPE['BOJIN'] = '3'] = '铂金';
GPT4_VIP_TYPE[GPT4_VIP_TYPE['ZUAN'] = '4'] = '钻卡';

/** POSTER会员类型 */
export const POSTER_VIP_TYPE = {};
POSTER_VIP_TYPE[POSTER_VIP_TYPE['NOT'] = '0'] = '普通用户';
POSTER_VIP_TYPE[POSTER_VIP_TYPE['TONG'] = '1'] = '铜卡';
POSTER_VIP_TYPE[POSTER_VIP_TYPE['JIN'] = '2'] = '金卡';
POSTER_VIP_TYPE[POSTER_VIP_TYPE['BOJIN'] = '3'] = '铂金';
POSTER_VIP_TYPE[POSTER_VIP_TYPE['ZUAN'] = '4'] = '钻卡';

/** 万能场景默认值 */
export const PUBLIC_SCANC_DEF = 1;


/** 问答是否结束（用于控制是否显示继续按钮） */
export const GPT_IT_END = {};
GPT_IT_END[GPT_IT_END['END'] = 1] = '结束';
GPT_IT_END[GPT_IT_END['NOT_END'] = 0] = '未回答完';



// 语音识别秘钥
export const TX_AUDIO_APPID = "1306761992";
export const TX_AUDIO_SECRET_ID = "AKIDgBSVIp66shHclkV1HH3btvhDVY1Zy71h";
export const TX_AUDIO_SECRET_KEY = "UjjTxCCwRhhVQ7ZmnfS1LQFq31kVAh4E";

// 分享文案
export const SHARE_INFO = {
	TITLE: "【某某AI】引领科技，探索无限",
	IMG_URL: "https://app.xxxxxxxx.com/images/21.png",
}